-
Notifications
You must be signed in to change notification settings - Fork 28.7k
[SPARK-4166][Core][WebUI] Display the executor ID in the Web UI when ExecutorLostFailure happens #3033
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Test build #22603 has started for PR 3033 at commit
|
Test build #22603 has finished for PR 3033 at commit
|
Test PASSed. |
This looks good to me. |
Actually, there might be a backwards-compatibility concern here when event logs written by older Spark versions. Ping @andrewor14 for review. |
Hey @zsxwing can you attach a screenshot of what it looks like before and after? |
@@ -636,7 +638,9 @@ private[spark] object JsonProtocol { | |||
new ExceptionFailure(className, description, stackTrace, metrics) | |||
case `taskResultLost` => TaskResultLost | |||
case `taskKilled` => TaskKilled | |||
case `executorLostFailure` => ExecutorLostFailure | |||
case `executorLostFailure` => | |||
val executorId = (json \ "Executor ID").extract[String] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes this needs to be backward compatible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this can just be extractOpt with a default executor ID of "unknown"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a Utils.jsonOption
that we can use here
@andrewor14 I think #3032 is the web UI display half of this PR, which contains screenshots; this looks like it's just adding additional information to ExecutorLostFailure. |
Oh I see, this patch doesn't make any changes to the UI itself |
Test build #22680 has started for PR 3033 at commit
|
I updated to use |
Test build #22680 has finished for PR 3033 at commit
|
Test PASSed. |
This looks good to me; I compared this against other recent changes to JsonProtocol and it seems to handle backwards-compatibility in the proper way, so I'm going to merge it. Thanks! |
Hey @zsxwing actually can you add a backward compatibility test in |
Already added it in #3085 |
Now when ExecutorLostFailure happens, it only displays
ExecutorLostFailure (executor lost)
. Adding the executor id will help locate the faulted executor.